#pragma once
#include "ChartCtrl/ChartCtrl.h"
#include "ChartCtrl/ChartLineSerie.h"
#include "ChartCtrl/ChartAxisLabel.h"
#include "NavStore.h"

class NavChart :
	public CChartCtrl
{
public:
	NavChart();
	~NavChart();

public:
	const COLORREF rgb_RED   = RGB(255, 0, 0);
	const COLORREF rgb_GREEN = RGB(0, 255, 0);
	const COLORREF rgb_BLUE  = RGB(0, 0, 255);

	CChartLineSerie* pLS_x, * pLS_y, * pLS_z;
	CChartAxis* pAxis_g = NULL;

	TChartString chartTitle;

	INT datalen;
	double* t, * x, * y, * z;

	void init(TChartString title, INT len);
	void clear();
	void addSample(double* txyz);
};

